package com.wngbms.aop.staticproxy;

public class EchoServiceProxy implements EchoService {

    private final EchoService echoService;

    public EchoServiceProxy(EchoService echoService) {
        this.echoService = echoService;
    }

    @Override
    public String echo(String msg) {
        System.out.println("pre");
        String echo = echoService.echo(msg);
        System.out.println("end");
        return echo;
    }
}
